﻿using WebApiClientCore;
using WebApiClientCore.Attributes;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Auth;

namespace BPM.Web.Shared.Service;

[TokenFilter]
public interface IVisLogClient : IHttpApi
{
    /// <summary>
    /// 分页查询访问日志
    /// </summary>
    /// <param name="body"></param>
    /// <param name="token"></param>
    /// <returns></returns>
    [HttpGet("sysVisLog/page")]
    ITask<XnRestfulResult<PageResult<VisLogOutput>>> PageAsync(VisLogPageInput body, CancellationToken token = default);

    /// <summary>
    /// 清空访问日志
    /// </summary>
    /// <param name="token"></param>
    /// <returns></returns>
    [HttpPost("sysVisLog/delete")]
    ITask<XnRestfulResult<string>> DeleteAsync(CancellationToken token = default);
}
